package com.zx.template.pojo.dto;


import com.zx.template.base.ValidationGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@ApiModel("个人作品")
@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class UserResumeDto {

    /**
     * 作品名称
     */
    @ApiModelProperty("作品名称")
    @NotBlank(message = "作品名称 不能为空",groups = {ValidationGroup.Add.class})
    @Length(max = 15,groups = {ValidationGroup.Add.class})
    private String worksName;

    /**
     * 角色名称
     */
    @ApiModelProperty("角色名称")
    @NotBlank(message = "角色名称 不能为空",groups = {ValidationGroup.Add.class})
    @Length(max = 15,groups = {ValidationGroup.Add.class})
    private String roleName;

    /**
     * 照片
     */
    @ApiModelProperty("照片")
    @NotBlank(message = "照片 不能为空",groups = {ValidationGroup.Add.class})
    @Length(max = 255,groups = {ValidationGroup.Add.class})
    private String photo;
}
